/* * Sun Public License Notice * * The contents of this file are subject to the Sun Public License * Version 1.0 (the "License"). You may not use this file except in * compliance with the License. A copy of the License is available at * http://www.sun.com/ * * The Original Code is NetBeans. The Initial Developer of the Original * Code is Sun Microsystems, Inc. Portions Copyright 1997-2001 Sun * Microsystems, Inc. All Rights Reserved. */ package org.netbeans.modules.corba.browser.ns; /** * * @author Karel Gardas * @version 0.12 */ public class CopyServerCodePanel extends javax.swing.JPanel { static final long serialVersionUID =-1163268373531758617L; /** Creates new form CopyServerCodePanel */ public CopyServerCodePanel() { initComponents (); } /** This method is called from within the constructor to * initialize the form. * WARNING: Do NOT modify this code. The content of this method is * always regenerated by the FormEditor. */ private void initComponents () {//GEN-BEGIN:initComponents setLayout (new java.awt.GridBagLayout ()); java.awt.GridBagConstraints gridBagConstraints1; setBorder (new javax.swing.border.EmptyBorder(new java.awt.Insets(8, 8, 8, 8))); nameLabel = new javax.swing.JLabel (); nameLabel.setText ("Name:"); gridBagConstraints1 = new java.awt.GridBagConstraints (); gridBagConstraints1.gridx = 0; gridBagConstraints1.anchor = java.awt.GridBagConstraints.WEST; add (nameLabel, gridBagConstraints1); kindLabel = new javax.swing.JLabel (); kindLabel.setText ("Kind:"); gridBagConstraints1 = new java.awt.GridBagConstraints (); gridBagConstraints1.gridx = 0; gridBagConstraints1.anchor = java.awt.GridBagConstraints.WEST; add (kindLabel, gridBagConstraints1); variableLabel = new javax.swing.JLabel (); variableLabel.setText ("Variable:"); gridBagConstraints1 = new java.awt.GridBagConstraints (); gridBagConstraints1.gridx = 0; gridBagConstraints1.anchor = java.awt.GridBagConstraints.WEST; add (variableLabel, gridBagConstraints1); nameField = new javax.swing.JTextField (); nameField.addActionListener (new java.awt.event.ActionListener () { public void actionPerformed (java.awt.event.ActionEvent evt) { nameFieldActionPerformed (evt); } } ); gridBagConstraints1 = new java.awt.GridBagConstraints (); gridBagConstraints1.gridx = 1; gridBagConstraints1.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints1.insets = new java.awt.Insets (0, 8, 8, 0); gridBagConstraints1.weightx = 1.0; add (nameField, gridBagConstraints1); kindField = new javax.swing.JTextField (); kindField.addActionListener (new java.awt.event.ActionListener () { public void actionPerformed (java.awt.event.ActionEvent evt) { kindFieldActionPerformed (evt); } } ); gridBagConstraints1 = new java.awt.GridBagConstraints (); gridBagConstraints1.gridx = 1; gridBagConstraints1.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints1.insets = new java.awt.Insets (0, 8, 8, 0); gridBagConstraints1.weightx = 1.0; add (kindField, gridBagConstraints1); variableField = new javax.swing.JTextField (); variableField.addActionListener (new java.awt.event.ActionListener () { public void actionPerformed (java.awt.event.ActionEvent evt) { variableFieldActionPerformed (evt); } } ); gridBagConstraints1 = new java.awt.GridBagConstraints (); gridBagConstraints1.gridx = 1; gridBagConstraints1.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints1.insets = new java.awt.Insets (0, 8, 8, 0); gridBagConstraints1.weightx = 1.0; add (variableField, gridBagConstraints1); }//GEN-END:initComponents private void variableFieldActionPerformed (java.awt.event.ActionEvent evt) {//GEN-FIRST:event_variableFieldActionPerformed // Add your handling code here: }//GEN-LAST:event_variableFieldActionPerformed private void kindFieldActionPerformed (java.awt.event.ActionEvent evt) {//GEN-FIRST:event_kindFieldActionPerformed // Add your handling code here: }//GEN-LAST:event_kindFieldActionPerformed private void nameFieldActionPerformed (java.awt.event.ActionEvent evt) {//GEN-FIRST:event_nameFieldActionPerformed // Add your handling code here: }//GEN-LAST:event_nameFieldActionPerformed // Variables declaration - do not modify//GEN-BEGIN:variables private javax.swing.JLabel nameLabel; private javax.swing.JLabel kindLabel; private javax.swing.JLabel variableLabel; private javax.swing.JTextField nameField; private javax.swing.JTextField kindField; private javax.swing.JTextField variableField; // End of variables declaration//GEN-END:variables public String getName () { return nameField.getText (); } public String getKind () { return kindField.getText (); } public String getVariable () { return variableField.getText (); } }